import java.net.MalformedURLException;
import java.net.URL;
import java.util.List;

public class Main {

    public static void main(String[] args) throws MalformedURLException {

        GetURLContent urlContent = new GetURLContent();

        URLExtractor extractor = new URLExtractor();
        URL u;
        u = new URL("http://www.google.com");
        List<String> list=extractor.extract(u) ;
        for(String u1 : list){
            System.out.println(u1.toString());
           urlContent.saveHTML(u1);

        }
    }


}
